package com.willcode.demo.mvc.model.serviceimpl;

import com.willcode.demo.mvc.model.entity.TempUserInfo;
import com.willcode.demo.mvc.model.mapper.ITempUserInfoMapper;
import com.willcode.demo.mvc.model.service.ITempUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Will
 */
@Service
public class TempUserInfoServiceImpl implements ITempUserInfoService {

    @Autowired
    private ITempUserInfoMapper tempUserInfoMapper;

    @Override
    public int insert(TempUserInfo tempUserInfo) {
        return tempUserInfoMapper.insert(tempUserInfo);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return tempUserInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TempUserInfo tempUserInfo) {
        return tempUserInfoMapper.updateByPrimaryKey(tempUserInfo);
    }

    @Override
    public TempUserInfo selectByPrimaryKey(String id) {
        return tempUserInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TempUserInfo> selectAll() {
        return tempUserInfoMapper.selectAll();
    }

    @Override
    public List<TempUserInfo> pageTempUserInfo() {
        return null;
    }
}
